﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Northwind.NET.FE.Forms
{
    public partial class StartUpForm : Form
    {
        public StartUpForm()
        {
            InitializeComponent();
        }

        private void okButton_Click(object sender, EventArgs e)
        {
            Northwind.NET.FE.Properties.Settings.Default.HideStartUpForm =
                doNotShowCheckBox.Checked;
            Northwind.NET.FE.Properties.Settings.Default.Save();  
            this.Close(); 
        }

        private void StartUpForm_Load(object sender, EventArgs e)
        {
            doNotShowCheckBox.Checked =
                Northwind.NET.FE.Properties.Settings.Default.HideStartUpForm;   
        }
    }
}
